package com.bw.z.mvp.view.people.adapter;

import android.widget.ImageView;

import com.bw.z.R;
import com.bw.z.mvp.model.entity.UserFollowEntity;
import com.bw.z.network.Api;
import com.bw.z.utils.GlideUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.greenrobot.greendao.annotation.NotNull;

public class UserFollowAdapter extends BaseQuickAdapter<UserFollowEntity.Values, BaseViewHolder> {
    public UserFollowAdapter() {
        super(R.layout.item_follow_head);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, UserFollowEntity.Values values) {
        baseViewHolder.setText(R.id.follow_item_head_tv, values.author_name);
        ImageView imageView = baseViewHolder.getView(R.id.follow_item_head_img);
        GlideUtils.getInstance().GlideCircleCropImage(Api.FileUrl + values.author_img, imageView);
    }
}